<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/pub/includ.jsp"%>
<%@ include file="/pub/tree_common.jsp"%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</HEAD>
<BODY topmargin="0" leftmargin="0">
<table  height="100%" width="100%">
   <tr>
    <td valign="top">
	<div><a href="javascript:window.location.reload()">刷新</a></div>
    <div id="treeObject" ></div>
    </td>
   </tr>
</table> 
<script>   
    tree=new dhtmlXTreeObject('treeObject',"100%","100%",0); 
    tree.setOnClickHandler(doOnClick); 
    tree.setImagePath("<%=xtreePath%>"); 
    tree.enableDragAndDrop(false);   
    tree.setXMLAutoLoading("<%=path%>/sys/module/showTree");
    //tree.enableCheckBoxes(1);
    //tree.enableThreeStateCheckboxes(true); 
    //tree.enableRadioButtons(true);
    //tree.setOnDblClickHandler(doOnDblClick);
    //tree.enableHighlighting(true);
    //tree.enableTreeLines(false);
	//tree.setItemTopOffset('-1',0);
	//tree.setOnLoadingEnd(doOnClick);
    tree.loadXML("<%=path%>/sys/module/showTree");
    function doOnClick(nodeId){
		if(nodeId != null){
			parent.rightFrame.location='<%=path%>/sys/module/get/moduleList?moduleId='+nodeId;
		}
	}
	//function doOnDblClick(nodeId){
	//	alert(nodeId);
	//	return false;
	//}
</script> 
<script type="text/javascript">
	function refreshItem(nodeId){
		tree.refreshItem(nodeId);
		tree.focusItem(nodeId);
	}
	function deleteItem(nodeId){
		tree.deleteItem(nodeId);
	}
</script>
</body>
</html>
